package cn.xgxd.client;


import cn.xgxd.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "user-service")
public interface UserClient {

    @GetMapping("/user/{id}")
    Result findById(@PathVariable("id") Integer id);
}
